<style>
body{
	background:#f3f3f3 !important;
}
</style>
<div class="fui-page order-create-page fui-page-current" style="background:#fff;">
	<div class="fui-content" style="background:#fff;">
			<!-- 温馨提示 -->
			<div class="cont-group-weul-cells">
				<div class="weui_cells_title" style="color:#1fa1df;">预订信息</div>
				<div class="weui_cells">
					<div class="weui_cell">
						{{pagedata.post.way.title}}
					</div>
					<div class="weui_cell">
						<div class="weui_cell_bd weui_cell_primary" style="padding-left:0;">出发日期：</div>
						<div class="weui_cell_ft">{{pagedata.post.go_time}}</div>
					</div>
					<div class="weui_cell">
						<div class="weui_cell_bd weui_cell_primary" style="padding-left:0;">出游人数：</div>
						<div class="weui_cell_ft">{{pagedata.post.buynum}}人</div>
					</div>
				</div>
				<div class="weui_cells_title" style="color:#1fa1df;">联系信息</div>
				<div class="weui_cells weui_cells_form">
					<div class="weui_cell">
						<div class="weui_cell_hd"><label class="weui_label">姓名：</label></div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="text" ng-model="pagedata.post.name" placeholder="请填写真实姓名(必填)">
						</div>
					</div>
					<div class="weui_cell">
						<div class="weui_cell_hd"><label class="weui_label">手机号码：</label></div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="text" ng-model="pagedata.post.mobile" placeholder="请输入常用手机号码(必填)">
						</div>
					</div>
					<!--<div class="weui_cell">
						<div class="weui_cell_hd"><label class="weui_label">身份证号：</label></div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="text" ng-model="pagedata.post.shencode" placeholder="请输入常用身份证号(必填)">
						</div>
					</div>-->
				</div>
				<div ng-include="sys_html('common/_diyform',true)"></div>
				<div class="weui_cells">
				<div class="weui_cell">
						<div class="weui_cell_hd"><label class="weui_label">订单备注：</label></div>
				</div>
				<div class="weui_cell weui_cell_textarea">
						<div class="weui_cell_bd weui_cell_primary">
							<textarea class="weui_textarea" ng-model="pagedata.post.remark" placeholder="请输入订单备注" rows="3"></textarea>
						</div>
				</div>
				<div class="weui_cell">
						<div class="fui-article-content" ng-bind-html="trust(pagedata.basic.order_remark)"></div>
				</div>
				</div>
				<div class="fui-navbar">
					<a class="nav-item favorite-item">
						<div class='subtitle l' style="font-size:0.7rem;padding-bottom:0.15rem;margin-left:0.3rem">应付总额:
							<span class="bigprice" style="font-weight:600"> ￥</span>
							<span class='totalprice bigprice' style="font-weight:600;color:#fe7e13">{{pagedata.post.total_price}}</span>
						</div>
					</a>
					<a ng-if="!pagedata.order_id" href="javascript:;" ng-click="pagedata.pay()" class="nav-item" style="background:#fe7e13;color:#fff">立即预定</a>
					<a ng-if="pagedata.order_id" href="javascript:;" ng-click="access_json('jy_tour/order/list/')" class="nav-item" style="background:#fe7e13;color:#fff">查看订单</a>
				</div>
			</div>
	</div>
</div>
<script type="text/javascript">
scope.pagedata.pay=function(){
	scope.post_json('/spot.over_book/submit/',scope.pagedata.post,function(result){
		if(result.order_id){
			scope.pagedata.order_id=result.order_id;
			scope.$evalAsync();
			scope.tool.pay(result.pay_id,function(res){
					if(res.type=='success'){
						scope.message('支付成功！','success','jy_tour/order/list/status=1');
					}else{
						scope.message('支付失败！','success','jy_tour/order/list/');
					}
			});
		}
	});
}
</script>
